package com.ojoin.trade.common.web.quartz;

import org.quartz.SchedulerException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class LoadTask {     
     
	private final Logger logger = LoggerFactory.getLogger(this.getClass());     
	      
	@Autowired     
	private QuartzTaskService taskService;     
	     
	public void initTask() throws SchedulerException {		     
		initTask(false);   
	}	
	
	/**
	 * 当trigger修改时 调用
	 * @param rescheduleJob
	 * @throws SchedulerException
	 */
	public void initTask(boolean rescheduleJob) throws SchedulerException {		     
		taskService.init(rescheduleJob);
	}	  
}